import Mock from 'mockjs'
const List = []
const count = 10

for (let i = 0; i < count; i++) {
  List.push(Mock.mock({
    id: '@increment',
    timestamp: +Mock.Random.date('T'),
    from: '@name(true)',
    name: '@cname',
    title: '@title(5, 10)',
    imgUri: '@dataImage(190x105)',
    context: '@csentence(50, 70)',
    support:　'@integer(600, 8000)',
    comment: '@integer(600, 8000)',
    avatar: '@dataImage(24x24)'
  }))
}
const articles  = {
  getList: config => {
    return {state: 0, result: List}
  }
}

export default articles
